//
//  BPCrash.m
//  BPCrashDemo
//
//  Created by SiYugui on 2019/12/18.
//  Copyright © 2019年 SiYugui. All rights reserved.
//

#import "BPCrash.h"

@implementation BPCrash


/// 开启全部放崩溃
+ (void)makeAllEffective {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        [NSObject avoidObjectCrashExchangeMethod];
        
        [NSArray avoidArrayCrashExchangeMethod];
        [NSMutableArray avoidMutableArrayCrashExchangeMethod];
        
        [NSDictionary avoidDictionaryCrashExchangeMethod];
        [NSMutableDictionary avoidMutableDictionaryCrashExchangeMethod];
        
        [NSString avoidStringCrashExchangeMethod];
        [NSMutableString avoidMutableStringCrashExchangeMethod];
        
        [NSAttributedString avoidAttributedStringCrashExchangeMethod];
        [NSMutableAttributedString avoidMutableAttributedStringCrashExchangeMethod];
    });
}


@end
